package com.zr.inquiry.meiju;

public enum  TypeEnum {
    /**
     *
     */
    JINYONG(0,"采购询价"),
    /**
     *
     */
    QIYONG(1,"报废询价");
    private final Integer statusValue;
    private final String statusName;

    private TypeEnum(Integer statusValue,String statusName) {
        this.statusName = statusName;
        this.statusValue = statusValue;
    }
    public static String getName(int statusValue){
        for (TypeEnum c : TypeEnum.values()) {
            if (c.statusValue.equals(statusValue)){
                return c.statusName;
            }
        }
        return null;
    }
    public static Integer getValue(String statusName) {
        for (TypeEnum c : TypeEnum.values()) {
            if (c.getStatusName().equals(statusName)) {
                return c.getStatusValue();
            }
        }
        return null;
    }
    public Integer getStatusValue() {
        return statusValue;
    }

    public String getStatusName() {
        return statusName;
    }
}
